<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }
        
        div {
            position: relative;
            transform: translate(50%, 50%)
        }
        
        image {
            width: 100%;
            height: 100%;
            vertical-align: top;
        }
        
        .close-btn {
            position: absolute;
            left: -19px;
            top: 0;
            width: 18px;
            height: 18px;
            font-style: normal;
            border: 1px solid #ccc;
            border-right: 0;
            text-align: center;
            line-height: 15px;
        }
    </style>
</head>

<body>
    <div>
        <img src="../images/tao.png" alt="">
        <i class="close-btn">x</i>
    </div>
    <script>
        var i = document.querySelector('i');
        var div = document.querySelector('div');
        i.onclick = function() {
            div.style.display = 'none';
        }
    </script>
</body>

</html>